<template>
    <div class="info">
        <div class="nav">
            <div class="container">
                <div class="title">消息</div>
                <div class="icon_group">
                    <van-icon name="brush-o" size="26px" />
                    <van-icon name="comment-circle-o" size="26px" />
                </div>
            </div>
        </div>
        <div class="main">
            <div class="container">
                <div class="list">
                    <div class="xulie">
                        <router-link to="/">
                            <div class="icon"><van-icon name="smile-comment-o" size="1.1rem"/></div>
                            <div class="txt">评论转发</div>
                        </router-link>
                    </div>
                    <div class="xulie">
                        <router-link to="/">
                            <div class="icon"><van-icon name="like-o" size="1.1rem" /></div>
                            <div class="txt">赞同点赞</div>
                        </router-link>
                    </div>
                    <div class="xulie">
                        <router-link to="/">
                            <div class="icon"><van-icon name="star-o" size="1.1rem" /></div>
                            <div class="txt">收藏了我</div>
                        </router-link>
                    </div>
                    <div class="xulie">
                        <router-link to="/">
                            <div class="icon"><van-icon name="eye-o" size="1.1rem" /></div>
                            <div class="txt">新增关注</div>
                        </router-link>
                    </div>
                </div>

            </div>
        </div>
        <div class="info_list">
            <ul>
                <li v-for="(item,index) in arr">
                    <div class="container">
                        <router-link to="/">
                            <div class="img"><img :src=item.img alt=""></div>
                            <div class="name">{{ item.name }}</div>
                            <div class="text">{{ item.text }}</div>    
                        </router-link>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</template>

<style lang="less">
.info{
    width: 100%;
    height: 800px;
    background-color: #f4f5fa;
    .container{
        width: 94%;
        margin: 0 auto;
        position: relative;
    }
    .nav{
        width: 100%;
        height: 50px;
        position: fixed;
        background-color: #fff ;
        z-index: 1000;
        top: 0;
        left: 0;
        .title{
            width: 80px;
            position: absolute;
            left: calc(50% - 40px);
            top: 10px;
        }
        .icon_group{
            display: flex;
            position: absolute;
            justify-content: space-between;
            width: 60px;
            right: 0px;
            top: 12px;
        }
    }
    .main{
        margin-top: 50px;
        width: 100%;
        background-color: #fff;
        .list{
            width: 100%;
            height: 100px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 18px;
            text-align: center;
        }
        
    }
    .info_list{
            width: 100%;
            background-color: #fff;
            ul{
                width: 100%;
                li{
                    width: 100%;
                    height: 100px;
                    position: relative;
                    // border: 1px solid black;
                    .img{
                        width: 18%;
                        border-radius: 50%;
                        position: absolute;
                        top:25px;
                        left: 10px;
                        img{
                            width: 100%;
                            border-radius: 50%;
                        }
                    }
                    .name{
                        position: absolute;
                        top: 25px;
                        left: 80px;
                        font-size: 20px;
                        font-weight: bold;
                    }
                    .text{
                        position: absolute;
                        left: 80px;
                        font-size: 14px;
                        color: #9e9da2;
                        top: 65px;
                    }
                }
                li::after{
                    content: '';
                    width: 100%;
                    height: 10px;
                    background-color: #f4f5fa;
                    position: absolute;
                    bottom: -10px;
                }
            }
        }
}
</style>

<script>
import { Icon } from 'vant';

export default {
    data(){
        return{
            arr:[
                {
                    img: require('../assets/img/01.png'),
                    name:'邀请回答',
                    text:'推荐问题邀你回答'
                },
                {
                    img:require('../assets/img/02.png'),
                    name:'创作者小助手',
                    text:'你好呀，社区创作潜力新星！'
                },
            ]
        }
    }
}
</script>